import request from "@/utils/request.js"

export const articleGetService = (data) => {
  return request.get('/my/article/list', {
    params: data
  })
}

export const articleDetailGetService = (id) => {
  return request.get('/my/article/info', {params: {id}})
}

export const articleAddService = (data) => {
  return request.post('/my/article/add', data)
}

export const articleEditService = (data) => {
  return request.put('/my/article/info', data)
}

export const articleDelService = (id) => {
  return request.delete('/my/article/info', {params: {id}})
}
